package com.qf.czh.service;

import com.qf.czh.mapper.AuditMapper;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.apache.shiro.authz.annotation.RequiresRoles;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AuditService {
   @Autowired
    AuditMapper auditMapper;
//    @RequiresRoles("chuzhang")
//    @RequiresPermissions("chuzhang:audit1")
   public String page(){
       return "audit/audit";
   }

    public Integer auditLeave(String opinion , String status ,String id) {
        Integer result = null;
        try {
            result = auditMapper.auditLeave(opinion , status , id);
            return result;
        } catch (Exception e) {
            e.printStackTrace();

        }
        return -1;
    }
}
